package edu.ubb.scp.model;

import java.lang.reflect.Field;

public class GameOrder implements Model {
	private int TableID;
	private int GameID;

	public GameOrder(int tableID, int gameID) {
		super();
		TableID = tableID;
		GameID = gameID;
	}

	public GameOrder() {

	}

	public int getTableID() {
		return TableID;
	}

	public void setTableID(int tableID) {
		TableID = tableID;
	}

	public int getGameID() {
		return GameID;
	}

	public void setGameID(int gameID) {
		GameID = gameID;
	}

	@Override
	public String toString() {
		return "GameOrder [TableID=" + TableID + ", GameID=" + GameID + "]";
	}

	@Override
	public Field getPrimaryKey() {
		return null;
	}

	@Override
	public Field[] getKeys() {
		try {
			return new Field[] { GameOrder.class.getDeclaredField("TableID"),
					GameOrder.class.getDeclaredField("GameID") };
		} catch (NoSuchFieldException e) {
			e.printStackTrace();
		} catch (SecurityException e) {
			e.printStackTrace();
		}
		return new Field[] {};
	}

}
